#ifndef STUDENTS
#define STUDENTS
#define MaxSize 500


struct Student{
    char academy[50];
    char id[50];
    char name[50];
    char gender[50];
    char grade[50];
    char major[50];
    char Class[50];
};

struct StudentSqlist{
    Student data[500];
    int length;
};

void InitList(StudentSqlist *&L  );
void DestroyList(StudentSqlist *L);
 bool ListEmpty(StudentSqlist *L);
int ListLength(StudentSqlist * L);
void DispList(StudentSqlist *L);
bool GetElem(StudentSqlist *L,int i,Student &e);
int LocateElem(StudentSqlist *&L,Student e);
bool ListInsert(StudentSqlist *&L,int i,Student e);
bool ListDelete(StudentSqlist *&L,int i ,Student &e);
bool searchStudentById(StudentSqlist *L,char id,Student &student);
void showStudentInfo(Student student);

#endif //STUDENTS